import cv2
from ultralytics import YOLO

from src.practise import test2


# opencv
def test1():

    model = YOLO(model="../yolo11n.pt")
    # model = YOLO()
    img = cv2.imread("../photos/report.jpeg")

    res = model(img)
    print(res)
    img2 = res[0].plot()

    cv2.imshow("any", img2)
    cv2.waitKey(delay=8000)
    cv2.destroyWindow('any')


if __name__ == '__main__':
    test1()
